using UnityEngine;

public class PathNode : MonoBehaviour
{
    private static Vector3 absorbOffset = new Vector3(0f, 0.1f, 0f);

    public void AbsorbToSurface()
    {
        Vector3 position = PathEditorTool.ClosestUpperSurface(transform.position);
        transform.position = absorbOffset + position;
    }
}
